<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Administrator
 * Date: 14-5-8
 * Time: 下午4:27
 * To change this template use File | Settings | File Templates.
 */
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: POST');
header('Access-Control-Max-Age: 1000');

include_once dirname(__FILE__) . '/UserRegister_func.php';


function RequestSolve(){
    $result = UserRegister_Route($_POST);
//    switch ($_SERVER["REQUEST_METHOD"]){
//        case "GET":$result = UserRegister_Route($_GET);break;
//        case "POST":$result = UserRegister_Route($_POST);break;
//        default :$result =UserRegister_Route($_POST);break;
//    }
    echo json_encode($result);
}

RequestSolve();

?>